home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Set(REL2) ARP User's Manual Set(REL2)
-
-
-
- NAME
- Set - Set or clear the value of an environment variable
-
- SYNOPSIS
- Set Variable=Value/... ESCAPE/k BCPL/K LISTALL/S
-
- Description
- Environment variables are something which ARP brings to the
- Amiga. We were not the first, Manx first used Environment
- variables extensively, and our implementation supports them.
- All Manx software currently in use will work with
- arp.library and its environment variable support.
-
- Environment variables are very useful in setting specific
- behaviour for different users. ARP programs currently use
- two environment variables, one is used by all the programs
- which process dates, such as SetDate, Date, List, and so on.
- This variable is called "dateformat", and determines the
- format of input and output the command should accept and
- perform. The other variable is called "copyflags" and is
- used by the ARP Copy program. For more information on these
- variables, see the manual pages for any of these programs.
-
- To set the value of an environment variable, simply use SET
- VARNAME=VAL, which sets the value of VARNAME to VAL. To
- remove this environment variable do Set VARNAME= or Set
- VARNAME. REL2 of Set uses Multiargs, so there is no limit
- to the number of variables you can set and clear with one
- command. You can intermix setting and clearing variables on
- the same command line.
-
- To view the values of all current environment variables,
- simply use Set without any arguments.
-
- You can use spaces in your variable names and values, but it
- is not generally a good idea. If you do use spaces, you
- must surround the complete expression with double quotes,
- i.e., "Variable Name=Variable Value". Note that the similar
- looking expression "Variable Name = Variable Value" has
- hidden spaces. The Variable ends with a space, and the
- value begins with one. This is only one example of how
- problematical spaces in environment variables and values can
- become.
-
- REL2 of Set also has special features for setting the Escape
- character and increasing the amount of BCPL compatibility.
- You can set the current escape character by using the ESCAPE
- <char> keyword.
-
- One source of problems with old script files and ARP is the
- use of the star "*" to refer to the current window. ARP
- programs tend to regard the star "*" as a wildcard, as is
-
-
-
- Page 1 (printed 2/22/88)
-
-
-
-
-
-
- Set(REL2) ARP User's Manual Set(REL2)
-
-
-
- common. If you use the BCPL keyword to do SET BCPL TRUE,
- those programs which tend to have problems with this will
- attempt to overlook the "*" as a wildcard.
-
- Finally, you can get a listing of all variables, including
- the values of ESCAPE and BCPL by using the keyword LISTALL.
-
- EXAMPLE
- Set DODAH=SONG dateformat=0 copyflags= ESCAPE \
-
- The command line above creates or redefines the variable
- DODAH to have the value SONG, dateformat to have the value
- 0, removes the variable copyflags from the environment, and
- sets the current ESCAPE character to \.
-
- ADDITIONAL CONSIDERATIONS
- Manx users should not mix the MANX set and the ARP set, as
- this could result in problems, although nothing definite is
- known. If you wish to use the ARP set, simply copy it to
- your BIN directory. Other than this, there should be no
- problems between the ARP environment and the Manx
- environment.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 2 (printed 2/22/88)
-
-
-
-